<template>
<div class="width">
  <van-swipe :autoplay="3000" lazy-render>
    <van-swipe-item v-for="image in banner" :key="image.id">
      <img :src="image.picUrl" />
    </van-swipe-item>
  </van-swipe>
</div>
</template>
  
<script setup lang="ts">
// 状态数据
defineProps(["banner"]);

</script>
  
<style scoped lang="less">
.width{
  width: 375px;
}
img {
  max-width: 100%;
}

</style>